package com.nblog.interceptor.front;
import com.jfinal.aop.Duang;
import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import com.nblog.service.WebinfoService;
public class WebsiteInterceptor implements Interceptor {
	WebinfoService webinfoService=Duang.duang(WebinfoService.class);
	@Override
	public void intercept(Invocation inv) {
		inv.getController().setAttr("webinfo", webinfoService.getWebInfo());
		inv.invoke();
	}

}
